#{extends 'frameHome.html' /} #{set title:'Home' /} #{set 'moreStyles'}

<link rel="stylesheet" href="@{'/public/stylesheets/forms.css'}">

<link rel="stylesheet" href="@{'/public/stylesheets/css3buttons.css'}">
#{/set}

<script type="text/javascript">
	$(document).ready(
			function() {
				$('.left, .content input, .content textarea, .content select')
						.focus(function() {
							$(this).parents('.row').addClass("over");
						}).blur(function() {
							$(this).parents('.row').removeClass("over");
						});
			});
</script>

<div id=right>

	<script type="text/javascript">
		function createTarget(t) {
			window.open("", t, "width=600,height=550");
			return true;
		}
	</script>

	
	<hr><b>Please Write a Justification Note for the Delete/Hide of the Idea to be sent to the Idea Creator</b></hr>
	
	<div id=right>
	
	<script type="text/javascript">
		function createTarget(t) {
			window.open("", t, "width=600,height=550");
			return true;
		}
	</script>
	
	<form name=Post
		action="@{PostingIdea.deleteIdea(idea.id)}" method="POST">

			<div class="content">
				<div class="left">Justification Note*</div>
				<div class="right">
					<textarea rows="25" cols="25" name="Note" required></textarea>
				</div>
				<div class="clear"></div>
			</div>
			<input type="submit" name="Post" value="Delete Idea"onclick="return confirm ('Are you sure you want to delete this idea?');"
				class="primary button" />
				#{if idea.hide==false}
				 <input type="submit" name="save"
				formaction='@{PostingIdea.hideIdea(idea.id)}'onclick="return confirm ('Are you sure you want to hide this idea?');"
				value="Hide Idea" />
				#{/if}
	</form>
			<p>*All Fields are Required</p>
	</div>
	
	